<?php 
define('RUN_KATANA', true);
require('../../includes/config.php');
$orderid = intval($_REQUEST['order']);
$action  = $_REQUEST['action'];
if($orderid > 0)
{
	if(file_exists(ORDERS_PATH.'nets_order_'.$orderid.'.html'))
	{
		echo '<?xml version="1.0" encoding="iso-8859-1"?>';
		?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html>
<head>
<title>Payment form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<script type="text/javascript">
window.onload = function (evt) { document.forms[0].submit(); }
</script>
</head>
    <body>
        <form name="payform" method="post" action="https://payment.architrade.com/payment/start.pml">
            <?php require_once(ORDERS_PATH.'nets_order_'.$orderid.'.html'); ?>
        </form>
    </body>
</html>
		<?php 
	}
	/*
	else
	{ header('Location: '.$CancelURL); }
	*/
}
/*
else
{ header('Location: '.$CancelURL); }
*/
?>